Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Dana Prejipyvergon 21.Jan.04 04:06 PM a Web browser
Notes Client 6.5 Windows 2000


Hi

I'm trying to import some DXL into a notes database using a java agent. Basically I have a database that contains documents. I export the documents to a file and then want to import them. I want to be able to change the contents in the file and re-import the dxl data with the changes

The trouble is the DxlImporter.DXLIMPORTOPTION_UPDATE_ELSE_CREATE is not working as exptected. When running the agent on my client I keep on getting the following stack trace:

NotesException: DXL importer operation failed
at lotus.domino.local.DxlImporter.NimportDxlString(Native Method)
at lotus.domino.local.DxlImporter.importDxl(Unknown Source)
at JavaAgent.NotesMain(JavaAgent.java:36)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(NotesThread.java:208)

Not much to go on as you can see. When I remove the DXLIMPORTOPTION_UPDATE_ELSE_CREATE code the agent works fine, but creates a new document in the database which isn't what I wanted. I've tried to fiddle around with the DXL and have more or less removed all of the exported nodes, but still it won't import with the flag set. Am I missing something here?

This is the agent I've created:

Session session = getSession();
AgentContext agentContext = session.getAgentContext();
Database db = agentContext.getCurrentDatabase();

FileInputStream input = new FileInputStream("c:/dxl.xml");
BufferedReader reader = new BufferedReader(new InputStreamReader(input));

StringBuffer buffer = new StringBuffer();
String line;

while ((line = reader.readLine()) != null) {
buffer.append(line);
}

reader.close();
input.close();

DxlImporter importer = session.createDxlImporter();
importer.setDocumentImportOption(DxlImporter.DxlImporter.DXLIMPORTOPTION_UPDATE_ELSE_CREATE);
importer.importDxl(buffer.toString(), db);

session.recycle();

Any ideas?






Trouble with DxlImporter.DXLIMPORTO... (~Dana Prejipyve... 21.Jan.04)
. . RE: Trouble with DxlImporter.DXLIMP... (~Wei Frojipyman... 21.Jan.04)
. . . . RE: Trouble with DxlImporter.DXLIMP... (~Dana Prejipyve... 22.Jan.04)
. . RE: Trouble with DxlImporter.DXLIMP... (~Kirk Elreterod... 21.Jan.04)
. . . . RE: Trouble with DxlImporter.DXLIMP... (~Dana Prejipyve... 22.Jan.04)
. . . . . . RE: Trouble with DxlImporter.DXLIMP... (~Kirk Elreterod... 22.Jan.04)
. . . . . . . . RE: Trouble with DxlImporter.DXLIMP... (~Dana Prejipyve... 22.Jan.04)
. . . . . . . . . . RE: Trouble with DxlImporter.DXLIMP... (~Kirk Elreterod... 22.Jan.04)
. . . . . . . . . . . . RE: Trouble with DxlImporter.DXLIMP... (~Dana Prejipyve... 23.Jan.04)
. . . . . . . . . . . . . . RE: Trouble with DxlImporter.DXLIMP... (~Kirk Elreterod... 23.Jan.04)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS